package com.easysale.modelview;

import java.io.Serializable;
import java.util.List;

import org.codehaus.jackson.annotate.JsonAutoDetect;
import org.codehaus.jackson.annotate.JsonAutoDetect.Visibility;

import com.easysale.domain.Product;
@JsonAutoDetect(getterVisibility=Visibility.ANY, fieldVisibility=Visibility.NONE, setterVisibility=Visibility.NONE)
public class ProductsResponse implements Serializable {
    private boolean success;
    private List<Product> products;

    public ProductsResponse(boolean success, List<Product> products) {
        this.success = success;
        this.products = products;
    }

	public boolean isSuccess() {
		return success;
	}

	public void setSuccess(boolean success) {
		this.success = success;
	}

	public List<Product> getProducts() {
		return products;
	}

	public void setProducts(List<Product> products) {
		this.products = products;
	}
}
